package cn.edu.xmu.orderpayment.order.model.vo;

import cn.edu.xmu.orderpayment.order.model.bo.Order;
import cn.edu.xmu.orderpayment.order.model.bo.OrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Li Yixuan 22920192204232
 * @Date: 2021/12/19
 */
@Data
@ApiModel(description ="创建订单传值对象")
public class NewOrderVo {

    @ApiModelProperty(value = "订单明细")
    @Valid
    @NotNull
    @Size(min = 1)
    private List<OrderItemVo> orderItems;

    @ApiModelProperty(value = "收货人")
    private String consignee;

    @ApiModelProperty(value = "地区id")
    private Long regionId;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "电话")
    private String mobile;

    @ApiModelProperty(value = "留言")
    private String message;

    @ApiModelProperty(value = "预售id")
    private Long advanceSaleId;

    @ApiModelProperty(value = "团购id")
    private Long grouponId;

    @ApiModelProperty(value = "使用积分")
    private Long point;


}
